#include <iostream>
#include <cstdio>
#include <string>
#include <vector>
#include <queue>
#include <algorithm>
#define FOR(i,a,n) for(int i=a,_n(n);i<_n;++i)
#define REP(i,n) FOR(i,0,n)

using namespace std;

int main()
{
	int n;
	while(cin>>n)
	{
		vector<bool> done(n+1,false);
		int t;
		REP(i,n)
		{
			cin>>t;
			if(t<=n) done[t] = true;
		}
		int ans = 0;
		FOR(i,1,n+1) if(!done[i]) ++ ans;
		cout<<ans<<endl;
	}
	return 0;
}
